/**
 * Created by chenyong on 2015/7/16.
 */

function TokenError(message, code, uri, status) {
    Error.call(this);
    Error.captureStackTrace(this, arguments.callee);
    this.name = 'TokenError';
    this.message = message;
    this.code = code || 'invalid_request';
    this.uri = uri;
    this.status = status || 500;
}

TokenError.prototype.__proto__ = Error.prototype;

module.exports = TokenError;